xfi:distinct-nonAbstract-parent-concepts

xs:QName*=xfi:distinct-nonAbstract-parent-concepts( $linkrole as xs:string?, $arcrole as xs:string)

Last updated on 18-06-2013 at 14:00:00Z.

Returns a sequence of relationship parents that represent non-abstract concepts and have non-abstract children.

OIM Status

Supported

Parameters

Name Type Details
linkrole xs:string? The linkrole value that specifies the network of effective relationships. If omitted ("()" or "''") then the default link role is used.
arcrole xs:string The arcrole value that specifies the network of effective relationships.

Output

Type: xs:QName*

All relationships from the root in the indicated network are checked for any that have non-abstract from (parent) and to (child). The set of distinct QNames of parents is returned.

This is a helper function for summing children and checking to parent value, when either the parent, or children, may be missing (falling back). It is used in conjunction with a conceptRelation filter.

Here is the equivalent XPath expression for this function, in terms of the xfi:concept-relations function:

        distinct-values(
     for $relationship in
          xfi:concept-relationships(
                 QName('http://www.xbrl.org/2008/function/instance','root'),
                 'http://abc.com/role/link1',
                 'http://www.xbrl.org/2003/arcrole/parent-child',
                 'sibling-or-descendant') ,
         $from-concept in xfi:relationship-from-concept($relationship),
         $to-concept in xfi:relationship-to-concept($relationship)
     return (
             if ( xfi:concept-custom-attribute($from-concept, QName("","abstract") or
                  xfi:concept-custom-attribute($to-concept, QName("","abstract"))
             then ()
             else $from-concept)
      )
      

Conformance suite

90510 xfi.distinct-nonAbstract-parent-concepts testcase.xml [ download ]

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 04-11-2009 at 20:00:00
Richard Ashby CoreFiling rna@corefiling.com 18-06-2013 at 14:00:00Z

Revisions

Name On Details
Herm Fischer 04-11-2009 at 20:00:00 Created this function definition after discussion with Victor Morilla.
Herm Fischer 12-12-2009 at 00:00:00 Clarified the xbrlinstance input.
Herm Fischer 07-09-2010 at 00:00:00 Incorporated feedback from Hitoshi Okumura. Changed input types to "?" for optional parameter linkrole. Added xs:anyURI constructor functions.
Herm Fischer 09-09-2010 at 00:00:00 Changed role URIs to strings for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string.
Richard Ashby 18-06-2013 at 14:00:00Z As per agreement on FWG call 2013/06/13, removed optional instance parameter and created separate CR function that uses it.